/*
 * User.java
 * 
 * Versao: 1.0.0
 *
 * Data: 05/04/2011
 *
 * Copyright (C) 2011
 * wsh-systems.
 * Todos os direitos reservados.
 */
package com.wsh.playeronline.persistence.model;

import java.io.Serializable;

import javax.persistence.Embedded;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Entity implementation class for Entity: User.
 * 
 * @author Washington
 * @version 1.0, 05/04/2011
 */
@Entity
@Table(name = "tb_user")
public class User implements Serializable {

	private static final long serialVersionUID = -7351729135012380019L;

	@Id
	@EmbeddedId
	@GeneratedValue
	private EntityKey entityKey;
	
	@Embedded
	private BaseEntity baseEntity;
	
	@ManyToOne
	private Imagem imagem;
	
	private String login;
	private String senha;
	private String email;
	
	/**
	 * Get to entityKey.
	 * 
	 * @return entityKey
	 */
	public EntityKey getEntityKey() {
		return entityKey;
	}
	/**
	 * Set to entityKey.
	 * 
	 * @param entityKey to set entityKey
	 */
	public void setEntityKey(EntityKey entityKey) {
		this.entityKey = entityKey;
	}
	/**
	 * Get to baseEntity.
	 * 
	 * @return baseEntity
	 */
	public BaseEntity getBaseEntity() {
		return baseEntity;
	}
	/**
	 * Set to baseEntity.
	 * 
	 * @param baseEntity to set baseEntity
	 */
	public void setBaseEntity(BaseEntity baseEntity) {
		this.baseEntity = baseEntity;
	}
	/**
	 * Get to imagem.
	 * 
	 * @return imagem
	 */
	public Imagem getImagem() {
		return imagem;
	}
	/**
	 * Set to imagem.
	 * 
	 * @param imagem to set imagem
	 */
	public void setImagem(Imagem imagem) {
		this.imagem = imagem;
	}
	/**
	 * Get to login.
	 * 
	 * @return login
	 */
	public String getLogin() {
		return login;
	}
	/**
	 * Set to login.
	 * 
	 * @param login to set login
	 */
	public void setLogin(String login) {
		this.login = login;
	}
	/**
	 * Get to senha.
	 * 
	 * @return senha
	 */
	public String getSenha() {
		return senha;
	}
	/**
	 * Set to senha.
	 * 
	 * @param senha to set senha
	 */
	public void setSenha(String senha) {
		this.senha = senha;
	}
	/**
	 * Get to email.
	 * 
	 * @return email
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * Set to email.
	 * 
	 * @param email to set email
	 */
	public void setEmail(String email) {
		this.email = email;
	}	
	
}